package com.letian.record.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.letian.common.annotation.Excel;
import com.letian.common.core.domain.BaseEntity;

/**
 * 记录照片对象 record_photo
 * 
 * @author bmz
 * @date 2023-11-06
 */
public class RecordPhoto extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编码 */
    private Long photoId;

    /** 类型 */
    @Excel(name = "类型")
    private String photoType;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String imageUrl;

    /** 拍照时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "拍照时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date photoTime;

    /** 地点 */
    @Excel(name = "地点")
    private String address;

    /** 删除标志 */
    private String delFlag;

    /** 更新次数 */
    @Excel(name = "更新次数")
    private Long updateCount;

    public void setPhotoId(Long photoId) 
    {
        this.photoId = photoId;
    }

    public Long getPhotoId() 
    {
        return photoId;
    }
    public void setPhotoType(String photoType) 
    {
        this.photoType = photoType;
    }

    public String getPhotoType() 
    {
        return photoType;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }
    public void setPhotoTime(Date photoTime) 
    {
        this.photoTime = photoTime;
    }

    public Date getPhotoTime() 
    {
        return photoTime;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setUpdateCount(Long updateCount) 
    {
        this.updateCount = updateCount;
    }

    public Long getUpdateCount() 
    {
        return updateCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("photoId", getPhotoId())
            .append("photoType", getPhotoType())
            .append("name", getName())
            .append("imageUrl", getImageUrl())
            .append("photoTime", getPhotoTime())
            .append("address", getAddress())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("updateCount", getUpdateCount())
            .append("remark", getRemark())
            .toString();
    }
}
